import request from "@/utils/request";

export function login(data) {
  const res = request({
    url: "/api/sys/login",
    method: "post",
    data,
  });
  return res;
}
export function UserProfile() {
   return request({
    url: "api/sys/profile",
    method: "post",
    
  })
}
export function userInfo(id) {
  return request({
    url: 'api/sys/user/' + id,
    method:'get'
  })
}

export function getUserDetailById(id) {
  return request({
    url: `/api/sys/user/${id}`,
  });
}

export function getInfo(token) {}

export function logout() {}
